﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domaine.Contracts;
using Infrastructure.Data.Repository;
using Infrastructure.Data.UnitOfWork;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Infrastructure.Data.MembershipModule.test
{
     [TestClass]
   public class UserRepositoryTest
    {

         [TestMethod]
         public void UserRepositoryGetTest()
         {
             //Arrange
             var unitOfWork = new MembershipUnitOfWork();
             IUserRepository userRepository = new UserRepository(unitOfWork);

             Guid selectedBankAccount = new Guid("0343C0B0-7C40-444A-B044-B463F36A1A1F");

             //Act
             var user = userRepository.Get(selectedBankAccount);

             //Assert
             Assert.IsNotNull(user);
             Assert.IsTrue(user.UserID == selectedBankAccount);
         }


    }
}
